home *** CD-ROM | disk | FTP | other *** search
- proc installkitInit {} {
- rename installkitInit {}
-
- namespace eval ::installkit {
- variable installkit
-
- variable root "/installkitvfs"
- variable wrapped [file exists [file join $root main.tcl]]
-
- namespace eval Windows {}
- }
-
- variable ::installkit::root
-
- set ::tcl_library [file join $root lib tcl]
- set ::tcl_libPath [list $::tcl_library [file join $root lib]]
-
- set ::auto_path $::tcl_libPath
- lappend ::auto_path [file join $root lib tk]
-
- if {![info exists ::parentThread]} {
- set ::tcl_interactive [string equal $::argv0 [info nameofexecutable]]
-
- if {$::installkit::wrapped} {
- if {!$::tcl_interactive
- && [file normalize $::argv0] ne [info nameof]} {
- set ::argv [linsert $::argv 0 $::argv0]
- }
-
- set ::tcl_interactive 0
-
- set ::argv0 [file join $::installkit::root main.tcl]
- info script $::argv0
- }
- }
-
- package require installkit
-
- package require zlib
-
- package require zvfs::zip
- }
-
- installkitInit
-